Tootsville::Item-Info

Function

Item-Info names a function, with lambda list (ITEM):

Describes ITEM in a JSON structure.

This structure has the following keys:

uuid
The universally-unique ID of this particular item
baseColor
The base color of this item (if any). This is a primary color texture that may be applied to the model. See TOOTSVILLE PARSE-COLOR24 for the syntax. The model must have a material named base for this color to apply to it (case-insensitive). See Tootsville.FurnitureBuilder.makeFurnitureColorizeMaterial for details.
altColor
The alternate color of this item (if any). This is a secondary color texture that may be applied to the model. See TOOTSVILLE PARSE-COLOR24 for the syntax. The model must have a material named alt for this color to apply to it (case-insensitive). See Tootsville.FurnitureBuilder.makeFurnitureColorizeMaterial for details.
specialTexture
The special texture image which may be applied to this image (if any). Some item models have a material named map which is textured with this image on a per-item basis. This is often used for e.g. signs and things which share geometry but have one surface that displays something unique. See Tootsville.FurnitureBuilder.setMaterialTexture for details.
template
The Item Template of which this individual item is an instance. This is a table in the form described at TOOTSVILLE ITEM-TEMPLATE-INFO.

energy
For items with an energyKind of COUNTABLE or UNCOUNTABLE, this indicates the number of (COUNTABLE) discrete energy units remaining or (UNCOUNTABLE) the portion of energyMax remaining (which should be surfaced to the user as a percentage or the like).
scale
The item's scaling factors in each of the x, y, and z dimensions, as compared to the size of the raw asset in the avatar model file.
position
The item's relative position in x, y, and z coördinates
facing
The angle in which the item is facing in radians. Clients should also support, for compatibility, the eight cardinal directions given as the strings N, NE, E, SE, S, SW, W, or NW.
world
The world in which the item is located
location
The location of the item within the world in lat-itude, long-itude, and alt-itude.

File

Defined in file src/items.lisp.